home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Framework / Includes / UInsertPartCommand.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.1 KB  |  53 lines  |  [TEXT/MPS ]

  1. // UInsertPartCommand.h
  2. // Copyright © 1996 by Apple Computer, Inc. All rights reserved.
  3.  
  4. /*
  5.     Change History:
  6.         02/21/96    gjc        Added build flag.
  7.         01/29/96    gjc        Removed Application (drawshape) specfic code and includes. 
  8.                             Generalized for all MacApp applications, knows about
  9.                             TODPartViews.
  10.         12/14/95    TWB        Rename to UInsertPartCommand. 
  11.         12/01/95    mdr        Created. 
  12. */
  13. #if qContainer
  14.  
  15. #ifndef __UINSERTPARTCOMMAND__
  16. #define __UINSERTPARTCOMMAND__
  17.  
  18. #ifndef __UODPARTVIEW__
  19. #include "UODPartView.h"
  20. #endif
  21.  
  22. #ifndef __FILES__
  23. #include <Files.h>
  24. #endif
  25.  
  26. class TInsertPartCommand : public TCommand
  27. {
  28.     MA_DECLARE_CLASS;
  29.  
  30. public:
  31.     TInsertPartCommand();
  32.     virtual ~TInsertPartCommand();
  33.     virtual    Boolean        IInsertPartCommand(CommandNumber itsCommandNumber,
  34.                                              TDocument* itsDocument,
  35.                                              TODPartView* itsPartView);
  36.     virtual    Boolean        ChoosePartFile();
  37.     virtual void        Commit();
  38.     virtual void        DoIt();
  39.     virtual void        UndoIt();
  40.     virtual void        RedoIt();
  41.  
  42. protected:
  43.     FSSpec            fFileSpec;
  44.     TODPartView*    fODPartView;
  45.     TDocument*        fDocument;
  46.  
  47. private:
  48.     static pascal Boolean    PartFileFilter(CInfoPBPtr pb);
  49. };
  50.  
  51. #endif // __UINSERTPARTCOMMAND__
  52. #endif //qContainer
  53.